/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo06;

/**
 *
 * @author 阙
 */
public class Man1 {

    private String eyescolor;

    public String getEyescolor() {
        return eyescolor;
    }

    public void setEyescolor(String eyescolor) {
        this.eyescolor = eyescolor;
    }
}

class AsiaMan1 extends Man1 {
    public static void main(String[] args) {
        AsiaMan1 asia=new AsiaMan1();
        asia.setEyescolor("黑色的");
        System.out.println("亚洲人的眼睛颜色是："+asia.getEyescolor());
    }
}

class EuroMan1 extends Man1 {

    public static void main(String[] args) {
        EuroMan1 euro = new EuroMan1();
        euro.setEyescolor("蓝色的");
        System.out.println("欧洲人的眼睛颜色是:" + euro.getEyescolor());
    }
}